Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-exponentiation-operator

Package Overview
Dependencies
Maintainers
6
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-exponentiation-operator

Compile exponentiation operator to ES5

  • 6.24.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.1M
decreased by-12.64%
Maintainers
6
Weekly downloads
 
Created

What is babel-plugin-transform-exponentiation-operator?

The babel-plugin-transform-exponentiation-operator package is a Babel plugin that transforms the exponentiation operator (**) in JavaScript into a form that is compatible with older JavaScript environments that do not support this operator natively.

What are babel-plugin-transform-exponentiation-operator's main functionalities?

Transform Exponentiation Operator

This feature allows you to use the exponentiation operator (**) in your code, and the plugin will transform it into a call to Math.pow, which is compatible with older JavaScript environments.

const squared = 2 ** 2; // Transformed to Math.pow(2, 2);

Other packages similar to babel-plugin-transform-exponentiation-operator

Keywords

FAQs

Package last updated on 07 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc